<!DOCTYPE html>
{% load staticfiles %}

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Software Afair Management System</title>

    <!-- Bootstrap core CSS -->
    <link href="{% static 'bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="{% static 'bootstrap/css/jumbotron.css' %}" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/signin.css' %}" rel="stylesheet">

    <script src="{% static 'bootstrap/js/jquery-3.3.1.min.js' %}"></script>
    <!--<script src="{% static 'bootstrap/js/bugs.js' %}"></script>-->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">

    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand">Software Afair Management System</a>
        </div>
        {% if login_user != None %}
            <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">

            <li><a href="">Welcome, 您好！{{ login_user }} </a></li>
            {% if authority == 'admin' %}
                <li class="dropdown">
                    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">管理
                        <span class="caret"></span></button>
                    <ul>
                        <li><a href="{% url 'bugs:project' %}">项目管理</a></li>

                        <li>
                            <a class="dropdown-toggle" data-toggle="dropdown">人員管理<span
                                    class="glyphicon glyphicon-menu-down" aria-hidden="true"></span></a>
                            <ul class="dropdown-menu" role="menu">
                                <li>
                                    <a href="{% url 'bugs:add_user' %}">增加用戶</a>
                                </li>
                                <li>
                                    <a href="{% url 'bugs:delete_user' %}">刪除用戶</a>
                                </li>
                                <li>
                                    <a href="{% url 'bugs:update_user' %}">修改用戶</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>
            {% endif %}
        {% endif %}
        <li>
            <a href="{% url 'bugs:logout' %}?next=/">
                Log out
            </a>
        </li>
        </ul>
        </div><!--/.navbar-collapse -->
    </div>
</nav>

<hr>
{% block content %}
{% endblock %}
</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>-->
<!--<script src="../../dist/js/bootstrap.min.js"></script>-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!--<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>-->
</body>
</html>

